package com.project.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.fasterxml.jackson.databind.ObjectMapper;
import com.project.bean.UserBean;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

@Mapper
public interface IUserMapper extends BaseMapper<UserBean> {
    public void addRoleIdArray(@Param("userId") Integer userId,
                               @Param("roleIdArray") Integer... roleIdArray);

    public void delRole(@Param("userId") Integer userId);

    public UserBean findById(Integer id);

}